package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.*;
import com.cskaoyan.market.vo.GoodsDetailMarketBrandVo;
import com.cskaoyan.market.vo.MarketGoodsDetailCategoryVo;

import java.util.List;
import java.util.Map;

public interface AdminGoodsService {

    List<MarketGoods> list(String page, String limit, String sort, String order, String goodsSn, String name, String goodsId);

    Map<String, Object> detail(String goodsId,String sort,String order);

    List<MarketGoodsDetailCategoryVo> categoryList();

    List<GoodsDetailMarketBrandVo> brandList();

    boolean updateGoods(MarketGoods goods, List<MarketGoodsAttribute> attributes, List<MarketGoodsProduct> products, List<MarketGoodsSpecification> specifications);

    int delete(Integer id);

    void insert(MarketGoods goods, List<MarketGoodsSpecification> specifications, List<MarketGoodsAttribute> attributes, List<MarketGoodsProduct> products);
}
